Skip to main content

Create List

AutomatR.DefaultActivities.List.CreateList<T>

The "Create List" activity in AutomatR, categorized under List, allows you to create a new empty list. This activity is useful for initializing a list that can be populated and manipulated in subsequent activities within your automation workflows.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Create List" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs the newly created list as a variable of type List\<T>. This variable can be utilized in subsequent activities for adding, updating, or iterating through the list. Variables of the appropriate type to store the list.

How to use:

  1. Drag and drop the "Create List" activity onto the workflow.
  2. Configure the properties, optionally setting a delay based on your requirements.
  3. Execute the workflow to create a new empty list.
  4. Utilize the output variable (Result) in subsequent activities for list-related operations.

Example: Consider an example where the "Create List" activity is used to initialize an empty list of integers:

Create List:
Result: myList

In this example, the activity creates a new empty list named "myList," which can be subsequently populated with integer values or manipulated in other list-related activities.